package com.example.demo2.mapper;

import com.example.demo2.pojo.data.EquipmentDO;
import com.example.demo2.pojo.vo.EquipmentVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.springframework.stereotype.Repository;

import java.util.List;

/** 
 * <br/>
 * Created by weidong on 2020/02/20
 */
@Repository
public interface EquipmentMapper {
    Integer add(EquipmentVO equipmentVO);

    Integer updateById(EquipmentVO equipmentVO);

    EquipmentDO findById(Integer id);

    List<EquipmentDO> list(EquipmentVO equipmentVO);

    List<EquipmentDO> listPage(EquipmentVO equipmentVO);

     Integer count(EquipmentVO equipmentVO);

    Integer deleteById(Integer id);

    Integer deleteByCategoryId(@Param("classid")Integer id);
}